<template>
    <div class="main">
        <div class="left">
            <img src="../assets/404.svg" alt="">
        </div>
        
        <div class="right">
            <div class="title">404</div>
            <p class="tt">抱歉，你访问的页面不存在</p>
            <a-button type="primary" @click="backTo">返回首页</a-button>
        </div>
    </div>
</template>

<script>

export default {
    methods: {
        backTo(){
            this.$router.replace({ name: 'Home' })
        }
    }
}
</script>

<style lang="less" scoped>
    .main{
        width: 100vw;
        min-width: 650px;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        .right{
            margin-left: 50px;
            .title{
                font-size: 70px;
                font-weight: 500;
            }
            .tt{
                font-size: 18px;
            }
        }
    }
</style>